<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<div id="contact-form" class="clearfix">
    <form action="<?php echo url_for('job/' . ($form->getObject()->isNew() ? 'create' : 'update') . (!$form->getObject()->isNew() ? '?id=' . $form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
        <?php if (!$form->getObject()->isNew()): ?>
            <input type="hidden" name="sf_method" value="put" />
        <?php endif; ?>
        <?php //echo $form->renderHiddenFields(false) ?>
        <?php echo $form ?>

        <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'job/delete?id=' . $form->getObject()->getId(), array('method'  => 'delete', 'confirm' => 'Are you sure?')) ?>
        <?php endif; ?>
        <input type="submit" value="Save" />
</div>
&nbsp;<a href="<?php echo url_for('job/index') ?>">Back to list</a>
